<div class="row m-n">
    <div tabset type="tab">
        <div tab heading="修改密码" active="activeFlag[0]">
            <form name="form" class="form-horizontal wrapper-md clearfix" novalidate>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i>原密码：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="password" name="oldPwd" class="form-control" ng-model="detailInfo.oldPwd" required yb-focus>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.oldPwd.$dirty || (form.oldPwd.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.oldPwd.$error.required && !form.oldPwd.focused">
                            <i class="yb-icon ico-times-circular"></i>必填项，请填写
                        </div>
                    </div>
                </div>
                <div class="form-group m-b-n">
                    <label class="col-xs-2 control-label"><i>*</i>新密码：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="password" name="newPwd" class="form-control" ng-model="detailInfo.newPwd" maxlength="20"
                               yb-password yb-pure-num required yb-focus>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.newPwd.$dirty || (form.newPwd.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.newPwd.$error.required && !form.newPwd.focused">
                            <i class="yb-icon ico-times-circular"></i>必填项，请填写
                        </div>
                        <div class="error-msg" ng-show="form.newPwd.$error.password && !form.newPwd.focused">
                            <i class="yb-icon ico-times-circular"></i>密码格式错误
                        </div>
                        <div class="error-msg" ng-show="!form.newPwd.$error.password && form.newPwd.$error.pureNum && !form.newPwd.focused">
                            <i class="yb-icon ico-times-circular"></i>密码过于简单，请重新输入
                        </div>
                    </div>
                </div>
                <div class="form-group m-b-xs">
                    <div class="col-xs-offset-2 col-xs-10 p-t-xs disable-color">由6到20位大小写字母、数字或其他字符组成</div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i>确认新密码：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="password" name="confirmPwd" class="form-control" ng-model="detailInfo.confirmPwd" required yb-focus>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.confirmPwd.$dirty || (form.confirmPwd.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.confirmPwd.$error.required && !form.confirmPwd.focused">
                            <i class="yb-icon ico-times-circular"></i>必填项，请填写
                        </div>
                        <div class="error-msg" ng-if="(!!detailInfo.confirmPwd) && (detailInfo.newPwd != detailInfo.confirmPwd) && !form.confirmPwd.focused">
                            <i class="yb-icon ico-times-circular"></i>新密码输入不一致，请重新输入
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-xs-offset-2">
                        <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid)">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>